package com.ruoyi.system.controller;


import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.domain.DataCoreTechnologeDto;
import com.ruoyi.system.service.IDataCoreTechnologyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/coreTechnology")
public class CoreTechnologyController {

    @Autowired
    private IDataCoreTechnologyService iDataCoreTechnologyService;

    @GetMapping(value = "/getInfo")
    public AjaxResult getInfo()
    {

        List<DataCoreTechnologeDto> dataCoreTechnologeDto = new ArrayList<DataCoreTechnologeDto>();

        dataCoreTechnologeDto = iDataCoreTechnologyService.selectAllDataCoreTechnologeDto();

        if(dataCoreTechnologeDto == null)
            return AjaxResult.error("结果返回为空");
        return AjaxResult.success(dataCoreTechnologeDto);
    }

}
